 function login() {
    axios.get("user/login", {
        params: {
            name: $("name").value,
            pwd: $("pwd").value
        }
    }).then(resp => {
        var info = resp.data;
        if (info == "ok") {
            location.href = "/forum/main.html";
        }
    });
}
